package cn.foolishbird.crow.anomaly;

/**
 * @author foolish-bird
 */
public class IllegalArgumentExceptionFactory implements BsAssertExceptionFactory<IllegalArgumentException> {

    static {
        CAssert.registerFactory(new IllegalArgumentExceptionFactory());
    }

    @Override
    public IllegalArgumentException exception(int code, String content) {
        return new IllegalArgumentException(content);
    }
}
